home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / System 7.0 Samples / ProcDoggie 1.0a6 / ProcDoggie.r < prev    next >
Encoding:
Text File  |  1991-02-07  |  7.6 KB  |  491 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2.  *
  3.  *    Apple Macintosh Developer Technical Support
  4.  *
  5.  *    Resource definitions
  6.  *
  7.  *    Program:    ProcDoggie
  8.  *    File:        ProcDoggie.r - Rez Source
  9.  *
  10.  *    by:            Forrest Tanaka
  11.  *
  12.  *    Copyright © 1988-1991 Apple Computer, Inc.
  13.  *    All rights reserved.
  14.  *
  15.  *------------------------------------------------------------------------------
  16.  *
  17.  *    For the moment, the resource definitions are actually inside the ResEdit
  18.  *    document called ProcDoggie.rsrc.  This file simply includes the resources
  19.  *    in that file
  20.  *
  21.  *----------------------------------------------------------------------------*/
  22.  
  23. #include "SysTypes.r"
  24. #include "Types.r"
  25.  
  26. type 'DITL' {
  27.     integer = $$CountOf(DITLarray) - 1;
  28.     wide array DITLarray {
  29.         byte; /* Font index */
  30.         byte textPlain=0,textBold=1,textItalic=2,textUnderline=4,textOutline=8,textShadow=16,textCondense=32,textExtend=64; /* Text item style */
  31.         byte; /* Font size */
  32.         byte justLeft=-2,justRight=-1,justDefault=0,justCenter=1; /* Justification */
  33.         rect;                                            /* Item bounds            */
  34.                 switch {
  35.  
  36.                 case HelpItem:                                    /* Help Mgr type item */
  37.                         boolean         enabled,disabled;        /* Enable flag            */
  38.                         key bitstring[7] = 1;                    /* this is a new type = 1 */
  39.                         
  40.                         switch {
  41.                             case HMScanhdlg:
  42.                                 byte = 4;                        /* sizeola                */
  43.                                 key int = 1;                    /* key value             */
  44.                                 integer;                        /* resource ID            */
  45.                                 
  46.                             case HMScanhrct:
  47.                                 byte = 4;                        /* sizeola                */
  48.                                 key int = 2;                    /* key value             */
  49.                                 integer;                        /* resource ID            */
  50.                                 
  51.                             case HMScanAppendhdlg:
  52.                                 byte = 6;                        /* sizeola                */
  53.                                 key int = 8;                    /* key value             */
  54.                                 integer;                        /* resource ID            */
  55.                                 integer;                        /* offset (zero based)    */
  56.                         };
  57.                 case Button:
  58.                         boolean         enabled,disabled;        /* Enable flag            */
  59.                         key bitstring[7] = 4;
  60.                         pstring;                                /* Title                */
  61.  
  62.                 case CheckBox:
  63.                         boolean         enabled,disabled;        /* Enable flag            */
  64.                         key bitstring[7] = 5;
  65.                         pstring;                                /* Title                */
  66.  
  67.                 case RadioButton:
  68.                         boolean         enabled,disabled;        /* Enable flag            */
  69.                         key bitstring[7] = 6;
  70.                         pstring;                                /* Title                */
  71.  
  72.                 case Control:
  73.                         boolean         enabled,disabled;        /* Enable flag            */
  74.                         key bitstring[7] = 7;
  75.                         byte = 2;
  76.                         integer;                                /* 'CTRL' ID            */
  77.  
  78.                 case StaticText:
  79.                         boolean         enabled,disabled;        /* Enable flag            */
  80.                         key bitstring[7] = 8;
  81.                         pstring;                                /* Text                 */
  82.  
  83.                 case EditText:
  84.                         boolean         enabled,disabled;        /* Enable flag            */
  85.                         key bitstring[7] = 16;
  86.                         pstring;                                /* Text                 */
  87.  
  88.                 case Icon:
  89.                         boolean         enabled,disabled;        /* Enable flag            */
  90.                         key bitstring[7] = 32;
  91.                         byte = 2;
  92.                         integer;                                /* 'ICON' ID            */
  93.  
  94.                 case Picture:
  95.                         boolean         enabled,disabled;        /* Enable flag            */
  96.                         key bitstring[7] = 64;
  97.                         byte = 2;
  98.                         integer;                                /* 'PICT' ID            */
  99.  
  100.                 case UserItem:
  101.                         boolean         enabled,disabled;        /* Enable flag            */
  102.                         key bitstring[7] = 0;
  103.                         byte = 0;
  104.                 };
  105.                 align word;
  106.         };
  107. };
  108.  
  109. include "ProcDoggie.rsrc";
  110.  
  111. resource 'DITL' (129, purgeable) {
  112.     {    /* array DITLarray: 36 elements */
  113.         /* [1] */
  114.         0,
  115.         0,
  116.         0,
  117.         0,
  118.         {10, 10, 42, 42},
  119.         UserItem {
  120.             disabled
  121.         },
  122.         /* [2] */
  123.         0,
  124.         0,
  125.         0,
  126.         0,
  127.         {10, 46, 30, 174},
  128.         StaticText {
  129.             disabled,
  130.             "Process Name"
  131.         },
  132.         /* [3] */
  133.         1,
  134.         textBold,
  135.         9,
  136.         justDefault,
  137.         {32, 46, 46, 144},
  138.         StaticText {
  139.             disabled,
  140.             "Application"
  141.         },
  142.         /* [4] */
  143.         1,
  144.         textBold,
  145.         9,
  146.         justDefault,
  147.         {19, 206, 33, 286},
  148.         StaticText {
  149.             disabled,
  150.             "Total Size:"
  151.         },
  152.         /* [5] */
  153.         1,
  154.         textBold,
  155.         9,
  156.         justDefault,
  157.         {32, 206, 46, 286},
  158.         StaticText {
  159.             disabled,
  160.             "Free Memory:"
  161.         },
  162.         /* [6] */
  163.         1,
  164.         textPlain,
  165.         9,
  166.         justRight,
  167.         {19, 285, 33, 325},
  168.         StaticText {
  169.             disabled,
  170.             ""
  171.         },
  172.         /* [7] */
  173.         1,
  174.         textPlain,
  175.         9,
  176.         justRight,
  177.         {32, 285, 46, 325},
  178.         StaticText {
  179.             disabled,
  180.             ""
  181.         },
  182.         /* [8] */
  183.         0,
  184.         0,
  185.         0,
  186.         0,
  187.         {10, 340, 42, 372},
  188.         UserItem {
  189.             disabled
  190.         },
  191.         /* [9] */
  192.         0,
  193.         0,
  194.         0,
  195.         0,
  196.         {52, 10, 52, 372},
  197.         UserItem {
  198.             disabled
  199.         },
  200.         /* [10] */
  201.         1,
  202.         textBold,
  203.         9,
  204.         justDefault,
  205.         {60, 10, 74, 62},
  206.         StaticText {
  207.             disabled,
  208.             "Type:"
  209.         },
  210.         /* [11] */
  211.         1,
  212.         textBold,
  213.         9,
  214.         justDefault,
  215.         {73, 10, 87, 62},
  216.         StaticText {
  217.             disabled,
  218.             "Creator:"
  219.         },
  220.         /* [12] */
  221.         2,
  222.         textPlain,
  223.         9,
  224.         justDefault,
  225.         {61, 61, 75, 136},
  226.         StaticText {
  227.             disabled,
  228.             "TYPE"
  229.         },
  230.         /* [13] */
  231.         2,
  232.         textPlain,
  233.         9,
  234.         justDefault,
  235.         {74, 61, 88, 136},
  236.         StaticText {
  237.             disabled,
  238.             "CREA"
  239.         },
  240.         /* [14] */
  241.         0,
  242.         0,
  243.         0,
  244.         0,
  245.         {92, 10, 92, 372},
  246.         UserItem {
  247.             disabled
  248.         },
  249.         /* [15] */
  250.         1,
  251.         textPlain,
  252.         9,
  253.         justDefault,
  254.         {105, 48, 119, 62},
  255.         StaticText {
  256.             disabled,
  257.             "√"
  258.         },
  259.         /* [16] */
  260.         1,
  261.         textPlain,
  262.         9,
  263.         justDefault,
  264.         {118, 48, 132, 62},
  265.         StaticText {
  266.             disabled,
  267.             "√"
  268.         },
  269.         /* [17] */
  270.         1,
  271.         textPlain,
  272.         9,
  273.         justDefault,
  274.         {131, 48, 145, 62},
  275.         StaticText {
  276.             disabled,
  277.             "√"
  278.         },
  279.         /* [18] */
  280.         1,
  281.         textPlain,
  282.         9,
  283.         justDefault,
  284.         {144, 48, 158, 62},
  285.         StaticText {
  286.             disabled,
  287.             "√"
  288.         },
  289.         /* [19] */
  290.         1,
  291.         textPlain,
  292.         9,
  293.         justDefault,
  294.         {157, 48, 171, 62},
  295.         StaticText {
  296.             disabled,
  297.             "√"
  298.         },
  299.         /* [20] */
  300.         1,
  301.         textPlain,
  302.         9,
  303.         justDefault,
  304.         {170, 48, 184, 62},
  305.         StaticText {
  306.             disabled,
  307.             "√"
  308.         },
  309.         /* [21] */
  310.         1,
  311.         textPlain,
  312.         9,
  313.         justDefault,
  314.         {183, 48, 197, 62},
  315.         StaticText {
  316.             disabled,
  317.             "√"
  318.         },
  319.         /* [22] */
  320.         1,
  321.         textPlain,
  322.         9,
  323.         justDefault,
  324.         {196, 48, 210, 62},
  325.         StaticText {
  326.             disabled,
  327.             "√"
  328.         },
  329.         /* [23] */
  330.         1,
  331.         textPlain,
  332.         9,
  333.         justDefault,
  334.         {209, 48, 223, 62},
  335.         StaticText {
  336.             disabled,
  337.             "√"
  338.         },
  339.         /* [24] */
  340.         1,
  341.         textPlain,
  342.         9,
  343.         justDefault,
  344.         {222, 48, 236, 62},
  345.         StaticText {
  346.             disabled,
  347.             "√"
  348.         },
  349.         /* [25] */
  350.         1,
  351.         textPlain,
  352.         9,
  353.         justDefault,
  354.         {235, 48, 249, 62},
  355.         StaticText {
  356.             disabled,
  357.             "√"
  358.         },
  359.         /* [26] */
  360.         1,
  361.         textBold,
  362.         9,
  363.         justDefault,
  364.         {105, 61, 119, 341},
  365.         StaticText {
  366.             disabled,
  367.             "Accepts suspend/resume events"
  368.         },
  369.         /* [27] */
  370.         1,
  371.         textBold,
  372.         9,
  373.         justDefault,
  374.         {118, 61, 132, 341},
  375.         StaticText {
  376.             disabled,
  377.             "Handles window activations on major switches"
  378.         },
  379.         /* [28] */
  380.         1,
  381.         textBold,
  382.         9,
  383.         justDefault,
  384.         {131, 61, 145, 341},
  385.         StaticText {
  386.             disabled,
  387.             "Reacts to mouse clicks that cause major "
  388.             "switches"
  389.         },
  390.         /* [29] */
  391.         1,
  392.         textBold,
  393.         9,
  394.         justDefault,
  395.         {144, 61, 158, 341},
  396.         StaticText {
  397.             disabled,
  398.             "Accepts Application-Died events"
  399.         },
  400.         /* [30] */
  401.         1,
  402.         textBold,
  403.         9,
  404.         justDefault,
  405.         {157, 61, 171, 341},
  406.         StaticText {
  407.             disabled,
  408.             "Stationery-aware"
  409.         },
  410.         /* [31] */
  411.         1,
  412.         textBold,
  413.         9,
  414.         justDefault,
  415.         {170, 61, 184, 341},
  416.         StaticText {
  417.             disabled,
  418.             "Can work in background"
  419.         },
  420.         /* [32] */
  421.         1,
  422.         textBold,
  423.         9,
  424.         justDefault,
  425.         {183, 61, 197, 341},
  426.         StaticText {
  427.             disabled,
  428.             "Only works in background"
  429.         },
  430.         /* [33] */
  431.         1,
  432.         textBold,
  433.         9,
  434.         justDefault,
  435.         {196, 61, 210, 341},
  436.         StaticText {
  437.             disabled,
  438.             "High-level event aware"
  439.         },
  440.         /* [34] */
  441.         1,
  442.         textBold,
  443.         9,
  444.         justDefault,
  445.         {209, 61, 223, 341},
  446.         StaticText {
  447.             disabled,
  448.             "Accepts remote high-level events"
  449.         },
  450.         /* [35] */
  451.         1,
  452.         textBold,
  453.         9,
  454.         justDefault,
  455.         {222, 61, 236, 341},
  456.         StaticText {
  457.             disabled,
  458.             "Allows multi-user launches"
  459.         },
  460.         /* [36] */
  461.         1,
  462.         textBold,
  463.         9,
  464.         justDefault,
  465.         {235, 61, 249, 341},
  466.         StaticText {
  467.             disabled,
  468.             "32-bit clean"
  469.         },
  470.         /* [37] */
  471.         1,
  472.         textPlain,
  473.         9,
  474.         justLeft,
  475.         {19, 325, 33, 335},
  476.         StaticText {
  477.             disabled,
  478.             "K"
  479.         },
  480.         /* [7] */
  481.         1,
  482.         textPlain,
  483.         9,
  484.         justLeft,
  485.         {32, 325, 46, 335},
  486.         StaticText {
  487.             disabled,
  488.             "K"
  489.         }
  490.     }
  491. };